﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.AspNet.SignalR;

namespace WinFormVideoServer.Hubs
{
    public class VideoHub : Hub
    {
        /// <summary>
        /// 重新加载远程视频列表
        /// </summary>
        public void ReloadRemoteVideoList()
        {
            Clients.All.ReloadVideoList();
        }

        /// <summary>
        /// 服务器文件更新
        /// </summary>
        public void OnServerFileUpdated()
        {
            Clients.All.OnServerFileUpdated();
        }

        public void OnServerFileDeleted(List<string> delFileList)
        {
            Clients.All.OnServerFileDeleted(delFileList);
        }
    }
}